home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 62
/
Volume 62 - JOGO DISK .iso
/
Games
/
penguin_dinner.swf
/
scripts
/
__Packages
/
classes
/
game
/
OrderPlate.as
< prev
next >
Wrap
Text File
|
2008-03-17
|
617b
|
27 lines
class classes.game.OrderPlate extends classes.ui.IconicButton
{
function OrderPlate()
{
super();
this.setType(classes.game.Food.TYPE_NONE);
}
function setType($type)
{
this.foodType = $type;
this.gotoAndStop($type);
}
function onRelease()
{
}
function onPress()
{
if(this.locked)
{
return undefined;
}
classes.core.SoundManager.getInstance().startSound("click_game_object");
this.filters = [];
this.dispatchEvent(new classes.events.WidgetEvent(this,classes.ui.IconicButton.CLICK));
}
}